package designpatterns.state;

import lombok.extern.slf4j.Slf4j;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 2/17/2022 7:46 PM
 */
@Slf4j
public class ConcreteStateB extends State {

    @Override
    public void Handle(Context context) {
        log.info("当前状态是 B");
        context.setState(new ConcreteStateA());
    }
}
